{extend name="layout/xilujob"}
{block name="content"}

<div class="c_right_header">
    <div class="title active">消息中心</div>
</div>
<div class="c_right_list">
    <div class="news_list">
        {if $personal.message}
        <a href="{:url('xilujob.user/personal_messages')}" class="news_item">
            <div class="img_box">
                <img src="__CDN__/assets/addons/xilujob/images/news_icon1.png" alt="">
            </div>
            <div class="news_item_con">
                <div class="clearfix">
                    <p class="title">通知消息</p>
                    <p class="time">{$personal.message.createtime|datetime|htmlentities}</p>
                </div>
                <p class="single-line">{$personal.message.content|htmlentities}</p>
            </div>
        </a>
        {/if}
        {if $activity.message}
        <a href="{:url('xilujob.user/activity_messages')}" class="news_item">
            <div class="img_box">
                <img src="__CDN__/assets/addons/xilujob/images/news_icon2.png" alt="">
            </div>
            <div class="news_item_con">
                <div class="clearfix">
                    <p class="title">活动消息</p>
                    <p class="time">{$activity.message.createtime|datetime|htmlentities}</p>
                </div>
                <p class="single-line">{$activity.message.content|htmlentities}</p>
            </div>
        </a>
        {/if}
        {if $system.message}
        <a href="{:url('xilujob.user/system_messages')}" class="news_item">
            <div class="img_box">
                <img src="__CDN__/assets/addons/xilujob/images/news_icon3.png" alt="">
            </div>
            <div class="news_item_con">
                <div class="clearfix">
                    <p class="title">系统消息</p>
                    <p class="time">{$system.message.createtime|datetime|htmlentities}</p>
                </div>
                <p class="single-line">{$system.message.content|htmlentities}</p>
            </div>
        </a>
        {/if}
    </div>
</div>

{/block}